package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.PlotDao;
import com.oscarmovie.model.DescriptionMovie;

public class PlotServiceImpl implements PlotService{
	private PlotDao plotDao;

	public void setPlotDao(PlotDao plotDao) {
		this.plotDao = plotDao;
	}

	public PlotDao getPlotDao() {
		return plotDao;
	}
	
	public void save(DescriptionMovie plot) {
		plotDao.save(plot);
	}

	
	public DescriptionMovie load(int id) {
		DescriptionMovie plot =  plotDao.load(id);
		return plot;
	}

	
	public List<DescriptionMovie> list() {
		return plotDao.list();
	}

	public List<DescriptionMovie> listByMovieId(int movieId) {
		return plotDao.listByMovieId(movieId);	
	}

	public List<DescriptionMovie> listByAccountId(int accountId) {
		return plotDao.listByAccountId(accountId);	
	}
}
